import ObjectSchema = Realm.ObjectSchema;

export const ProductSchema: ObjectSchema = {
    name: 'Product',
    primaryKey: "id",
    properties: {
        id: "int",
        name: "string?",
        price: "int?",
        description: "string?",
        imageUrl: "string?",
        disCount: "int?",
        invalid: "int?",
        createTime: "date?",
        hasActivity: "int?",
        stageIntegral: "int?",
        recommenderIntegral: "int?",
        signInTime: "int?",
        postage: "int?",
        recommenderSignInTime: "int?",
        type: "int?",
        infoImageUrl: "string?",
        purchaseLimit: "int?",
        mentionIntegral: "int?",
        integralDeductionPostage: "int?",
        special: "int?",
        productCategoryRelation:{type: 'list', objectType: 'ProductCategoryRelation'},
    }
};